package classTest.HomeWorkday07;

public class Test1 {
    static int s=100;
    public static void main(String[] args) {
 Thread t1=new Thread(){
     public void run(){
         for (int i = 0; i <s ; i++) {
             s--;
             System.out.println("一号剩余："+s);
         }
     }
 };
        Thread t2=new Thread(){
            public void run(){
                for (int i = 0; i <s ; i++) {
                    s--;
                    System.out.println("二号剩余："+s);
                }
            }
        };
        Thread t3=new Thread(){
            public void run(){
                for (int i = 0; i <s ; i++) {
                    s--;
                    System.out.println("三号剩余："+s);
                }
            }
        };
        t1.start();
        t2.start();
        t3.start();

    }}